import request from '@/utils/request'

import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl
interface Order{
    column:String;
    method:String;
}
export interface PageListType {
    pageNum:number;
    pageSize:number;
    condition: {
        alarmType: String;
        terminal?:String;
        createTime?:String;
        order?:Array<Order>;
    }
}

// 获取分页列表
export const greyTypeList = (data: any) => {
  return request({
    url: basePath + '/pax/grey/type/find/page',
    method: 'post',
    data
  })
}

// 新增数据
export const addGreyType = (data: any) => {
  return request({
    url: basePath + '/pax/grey/type/append',
    method: 'post',
    data
  })
}

// 删除
export const deleteGreyType = (data: any) => {
  return request({
    url: basePath + '/pax/grey/type/delete',
    method: 'post',
    data
  })
}

// 修改接口
export const upDateGreyType = (data: any) => {
  return request({
    url: basePath + '/pax/grey/type/update',
    method: 'post',
    data
  })
}
